package com.hx.voice.recognition.auth.client.fallback;

import com.hx.voice.recognition.auth.client.config.ServiceAuthConfig;
import com.hx.voice.recognition.auth.client.feign.ServiceAuthFeign;
import com.hx.voice.recognition.common.msg.ObjectRestResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @descripe：
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/17 11:15
 * @version：V1.0
 */
@Service
@Slf4j
public class ServiceAuthFallBack implements ServiceAuthFeign {

    @Autowired
    private ServiceAuthConfig serviceAuthConfig;

    @Override
    public ObjectRestResponse<List<String>> getAllowClient(String serviceId, String secret) {
        log.info("==========================={} error=================",serviceAuthConfig.getClientId());
        return null;
    }

    @Override
    public ObjectRestResponse getAccessToken(String serviceId, String secret) {
        log.info("==========================={} error=================",serviceAuthConfig.getClientId());
        return null;
    }

    @Override
    public ObjectRestResponse<byte[]> getServicePubKey(String serviceId, String secret) {
        log.info("==========================={} error=================",serviceAuthConfig.getClientId());
        return null;
    }

    @Override
    public ObjectRestResponse<byte[]> getUserPubKey(String serviceId, String secret) {
        log.info("==========================={} error=================",serviceAuthConfig.getClientId());
        return null;
    }
}